package com.zhihuichongcheng.application.ui.approval.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 3water on 2016/11/10.
 */

public class ApprovalMainAdapter extends FragmentPagerAdapter {
    private List<Fragment> mListData = new ArrayList<>();
    public ApprovalMainAdapter(FragmentManager fm, List<Fragment> list) {
        super(fm);
        this.mListData = list;
    }

    @Override
    public Fragment getItem(int position) {
        return mListData.get(position);
    }

    @Override
    public int getCount() {
        return mListData.size();
    }
}
